#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/2 0002 16:57
# @Author : Ares_Wang
# @Site : 
# @File : result.py
# @Software: PyCharm

import matplotlib.pyplot as plt

class Result(object):
    # 显示柱状图
    def show_histogram(self, x, y, if_show = True):
        plt.bar(range(len(y)), y, color='rgb', tick_label=x)
        if if_show:
            plt.show()

